package com.fly.admin

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@SpringBootApplication
@RestController
@RequestMapping
open class StartApplication {

    @GetMapping("/demo")
    fun demo(): String = "success"
}

fun main(args: Array<String>) {
    SpringApplication.run(StartApplication::class.java, *args)
}


